
import { Entity, PrimaryGeneratedColumn, Column } from "typeorm";
import { IsString } from "class-validator";

export class UserModel {
    @IsString()
    name: string = '';
}

@Entity('t_user')
export class User {
    @PrimaryGeneratedColumn()
    id!: number;

    @Column()
    name!: string;
}